package com.example.demo.service;

import com.example.demo.mapper.CalcMapper;
import com.example.demo.model.Calc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CalcService {
    @Autowired
    private CalcMapper calcMapper;

    public int save(Calc calc){
        return calcMapper.save(calc);
    }
    public List<Calc> load(){
        return calcMapper.load();
    }
}
